﻿<%@ Page Language="C#" MasterPageFile="~/Admin/admin.master" AutoEventWireup="true"
    CodeFile="ManageCCAPayment.aspx.cs" Inherits="ManageCCAPaymentPage" Title="Voucher List" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="Server">
    Payment List</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <data:GridViewSearchPanel ID="GridViewSearchPanel1" runat="server" GridViewControlID="GridView1"
        PersistenceMethod="Session"/>
    <br />
    <data:EntityGridView ID="GridView1" runat="server" AutoGenerateColumns="False" AllowMultiColumnSorting="False" AllowPaging="True" DefaultSortColumnName="DatePrinted"
        DefaultSortDirection="Descending" AllowSorting="True" PageSelectorPageSizeInterval="10"
        RecordsCount="0" ShowGridOnEmptyData="False" ExcelExportFileName="Export_Voucher.xls" AllowExportToExcel="True" DataSourceID="SunInvoiceDataSource1"
        ExportToExcelText="Excel">
        <Columns>
            <asp:TemplateField>
                <HeaderTemplate>
                    <input type="checkbox" class="checkall" />
                </HeaderTemplate>
                <ItemTemplate>
                    <asp:CheckBox runat="server" ID="cb_Check" /></ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="AccntCode" HeaderText="AccntCode" SortExpression="AccntCode" />
            <asp:BoundField DataField="TransDate" HeaderText="TransDate" SortExpression="TransDate" />
            <asp:BoundField DataField="Period" HeaderText="Period" SortExpression="Period" />
            <asp:BoundField DataField="JrnalNo" HeaderText="JrnalNo" SortExpression="JrnalNo" />
            <asp:BoundField DataField="JrnalLine" HeaderText="JrnalLine" SortExpression="JrnalLine" />
            <asp:BoundField DataField="Treference" HeaderText="Treference" SortExpression="Treference" />
            <asp:BoundField DataField="Amount" HeaderText="Amount" SortExpression="Amount" />
            <asp:BoundField DataField="DC" HeaderText="DC" SortExpression="DC" />
            <asp:BoundField DataField="Descriptn" HeaderText="Descriptn" SortExpression="Descriptn" />
            <asp:BoundField DataField="ConvRate" HeaderText="ConvRate" SortExpression="ConvRate" />
            <asp:BoundField DataField="OtherAmt" HeaderText="OtherAmt" SortExpression="OtherAmt" />
            <asp:BoundField DataField="AnalT0" HeaderText="AnalT0" SortExpression="AnalT0" />
            <asp:BoundField DataField="AnalT1" HeaderText="AnalT1" SortExpression="AnalT1" />
            <asp:BoundField DataField="AnalT2" HeaderText="AnalT2" SortExpression="AnalT2" />
            <asp:BoundField DataField="AnalT3" HeaderText="AnalT3" SortExpression="AnalT3" />
            <asp:BoundField DataField="AnalT4" HeaderText="AnalT4" SortExpression="AnalT4" />
            <asp:BoundField DataField="AnalT5" HeaderText="AnalT5" SortExpression="AnalT5" />
            <asp:BoundField DataField="AllocRef" HeaderText="AllocRef" SortExpression="AllocRef" />
            <asp:BoundField DataField="CreditCardId" HeaderText="CreditCardId" SortExpression="CreditCardId" />
            <asp:BoundField DataField="SunRefer" HeaderText="SunRefer" SortExpression="SunRefer" />
            <asp:BoundField DataField="JrnalSrce" HeaderText="JrnalSrce" SortExpression="JrnalSrce" />
            <asp:BoundField DataField="Description" HeaderText="Description" SortExpression="Description" />
            <asp:BoundField DataField="UserPrinted" HeaderText="UserPrinted" SortExpression="UserPrinted" />
            <asp:BoundField DataField="DatePrinted" HeaderText="DatePrinted" SortExpression="DatePrinted" />
        </Columns>
        <EmptyDataTemplate>
            <b>No Payment Found!</b>
        </EmptyDataTemplate>
    </data:EntityGridView>
    <br />
    <data:EntityDropDownList runat="server" CssClass="text-input" ID="ddlAction">
        <asp:ListItem Text="Choose an action ..."></asp:ListItem>
        <asp:ListItem Text="Print" Value="Print"></asp:ListItem>
    </data:EntityDropDownList>
    <asp:Button runat="server" ID="btnApply" Text="Apply to selected" CssClass="button"
        OnClick="btnApply_Click" />
    <br />
    <br />
    <data:SunInvoiceDataSource ID="SunInvoiceDataSource1" runat="server" EnablePaging="True"
        EnableSorting="True" SelectMethod="GetPaged">
        <Parameters>
            <data:CustomParameter Name="WhereClause" ConvertEmptyStringToNull="False" />
            <data:CustomParameter Name="OrderByClause" Value="" ConvertEmptyStringToNull="false" />
            <asp:ControlParameter Name="PageIndex" ControlID="GridView1" PropertyName="PageIndex"
                Type="Int32" />
            <asp:ControlParameter Name="PageSize" ControlID="GridView1" PropertyName="PageSize"
                Type="Int32" />
            <data:CustomParameter Name="RecordCount" Value="0" Type="Int32" />
        </Parameters>
    </data:SunInvoiceDataSource>
</asp:Content>
